package com.ruoyi.project.channel.channelAccountWb.service;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.project.channel.channelAccountWb.mapper.ChannelAccountWbMapper;
import com.ruoyi.project.channel.channelAccountWb.domain.ChannelAccountWb;
import com.ruoyi.project.channel.channelAccountWb.service.IChannelAccountWbService;
import com.ruoyi.common.utils.text.Convert;

/**
 * 微博收款 服务层实现
 * 
 * @author CAIN
 * @date 2019-12-04
 */
@Service
public class ChannelAccountWbServiceImpl implements IChannelAccountWbService 
{
	@Autowired
	private ChannelAccountWbMapper channelAccountWbMapper;

	/**
     * 查询微博收款信息
     * 
     * @param wbId 微博收款ID
     * @return 微博收款信息
     */
    @Override
	public ChannelAccountWb selectChannelAccountWbById(Long wbId)
	{
	    return channelAccountWbMapper.selectChannelAccountWbById(wbId);
	}
	
	/**
     * 查询微博收款列表
     * 
     * @param channelAccountWb 微博收款信息
     * @return 微博收款集合
     */
	@Override
	public List<ChannelAccountWb> selectChannelAccountWbList(ChannelAccountWb channelAccountWb)
	{
	    return channelAccountWbMapper.selectChannelAccountWbList(channelAccountWb);
	}
	
    /**
     * 新增微博收款
     * 
     * @param channelAccountWb 微博收款信息
     * @return 结果
     */
	@Override
	public int insertChannelAccountWb(ChannelAccountWb channelAccountWb)
	{
	    return channelAccountWbMapper.insertChannelAccountWb(channelAccountWb);
	}
	
	/**
     * 修改微博收款
     * 
     * @param channelAccountWb 微博收款信息
     * @return 结果
     */
	@Override
	public int updateChannelAccountWb(ChannelAccountWb channelAccountWb)
	{
	    return channelAccountWbMapper.updateChannelAccountWb(channelAccountWb);
	}

	/**
     * 删除微博收款对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
	@Override
	public int deleteChannelAccountWbByIds(String ids)
	{
		return channelAccountWbMapper.deleteChannelAccountWbByIds(Convert.toStrArray(ids));
	}
	
}
